package com.yunyike.constants;

import java.util.HashMap;
import java.util.Map;

public class ResponseConstant {

	public static final String USERS_PAGE = "/user/users";
	
	/****************common***************/
	public static final String REDIRECT = "redirect:";
	
	/**
	 * 页面
	 * */
	
	/****************首页***************/
	public static final String INDEX = "/index";
	public static final String ENTER_SHOP = "/init/enterShop";
	public static final String WX_AUTH = "/init/auth";
	
	/****************店铺***************/
	public static final String SHOP = "/shop/shop";
	public static final String SHOP_NOT_FOUND = "/shop/noShop";
	
	/****************商品***************/
	public static final String MERCHANDISE_DETAIL = "/merchandise/merchandiseDetail";
	public static final String MERCHANDISE_LIST = "/merchandise/merchandiseList";
	public static final String MERCHANDISE_LIST_BY_CONDITION = "/merchandise/merchandiseCondition";
	public static final String MERCHANDISE_LIST_BY_SETTLEMENT = "/cart/settlement/settlementItems";
	public static final String MERCHANDISE_NOT_FOUND = "/merchandise/noMerchandise";
	
	/****************购物车***************/
	public static final String CART_INDEX = "/cart/cart";
	public static final String CART_SETTLEMENT = "/cart/settlement/settlement";
	public static final String CART_SETTLEMENT_ADDRESS = "/cart/settlement/address";
	public static final String CART_SETTLEMENT_ADDRESS_INPUT = "/cart/settlement/editAddress";
	public static final String CART_SETTLEMENT_COUPON_LIST = "/cart/settlement/coupons";

	/****************收货地址***************/
	public static final String ADDRESS_LIST = "/user/address/address";
	public static final String ADDRESS_INPUT = "/user/address/editAddress";
	
	/****************支付***************/
	public static final String PAY_SELECT = "/pay/pay";
	
	/****************用户***************/
	public static final String USER_MAIN = "/user/userMain";
	public static final String USER_ORDERS = "/user/order/user_orders";
	public static final String USER_ORDER_MERCHANDISES = "/user/order/orderMerchandise";
	public static final String USER_PACKAGE_LIST = "/user/order/package_list";
	public static final String USER_IMMEDIATE_PAYMENT = "/user/order/immediatePayment";
	public static final String USER_TEL = "/user/user_tel";
	/****************优惠券（现金券、物流券）***************/
	public static final String USER_COUPON = "/user/coupon/coupon";
	/****************收货地址***************/
	public static final String USER_RECEPIENT = "/user/recepient/recepient";
	public static final String USER_RECEPIENT_EDIT = "/user/recepient/recepientEdit";
	/***********身份证信息***********/
	public static final String IDENTITYCARD_LIST = "/idcard/identitycard_list";
	public static final String IDENTITYCARD_EDIT = "/idcard/identitycard_edit";
	public static final String USER_IDCARD_LIST = "/user/idcard/identitycard_list";
	public static final String USER_IDCARD_EDIT = "/user/idcard/identitycard_edit";
	
	/**
	 * 状态码
	 * */
	
	/***************状态码*****************/
	// 成功
	public static final String SUCCESS = "YYK-10000";
	
	// 失败
	public static final String FAILED = "YYK-20000";
	
	// 购物车超重量
	public static final String OUT_OF_WEIGHT = "YYK-20002";
		
	// 购物车超数量
	public static final String OUT_OF_NUMBER = "YYK-20003";
	
	// 购物车超金额
	public static final String OUT_OF_PRICE = "YYK-20004";
	
	// 无用户位置信息
	public static final String NO_USER_LOCSTION = "YYK-20005";
	
	// 用户所在位置不支持购物
	public static final String NOT_SUPPORT_USER_LOCSTION = "YYK-20006";
	
	public static Map<Integer, String> message = new HashMap<Integer, String>();
	public static Map<Integer, String> submitOrderMessage = new HashMap<Integer, String>();
	
	static{
		message.put(0, "success");
		message.put(-1, "request parameter is not correct");
		message.put(-2, "data not found");
		message.put(-3, "sytem error");
		message.put(-4, "other error");
		
		message.put(-5, "out of stock");
		
		submitOrderMessage.put(-6, "recepient is null");
		submitOrderMessage.put(-7, "coupon is null");
		submitOrderMessage.put(-8, "needs to be settled merchandise is empty.");
		
	}
	
	/**
	 * 提交订单返回信息
	 */
	public static final String ORDER_FAILED_ADDRESS = "请填写收货地址";
	public static final String ORDER_FAILED_IDCARD = "请填写证件信息";
	public static final String ORDER_SUCCESS = "订单提交成功";
	public static final String ORDER_FAILED = "订单提交失败";
	public static final String ORDER_USER_LOCATION_FAILED = "Sorry,您不在店内,不能下单";
	public static final String ORDER_USER_NO_LOCATION_FAILED = "Sorry,不知道您身在何处,请退出重来并允许轻多了取得您的位置信息";
}
